
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <style>
        /* 类比 鸿蒙的样式属性 */
        button{
            background-color: aqua;
            width: 200px;
            height: 140px;
            color: black;
            font-size: 40px;
        }
    </style>
    <title>Document</title>
</head>
<body>
    <!---1.类比 鸿蒙 的 按钮-->
    <button>按钮</button>
    <script>
        document.querySelector('button').onclick=function(){
            console.log('紫霞仙子')
            setTimeout(() => {
                console.log('至尊宝')
            }, 2000);
        }
    </script>
</body>
</html>